import mitt from 'mitt'

const emitter = new mitt()
const { all, emit, off, on } = emitter

export default {
    init() {
        return {
            all, emit, off, on
        }
    }
}